
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGTextureGrabForeground.h>
#include <OpenSG/OSGTextureGrabForegroundBase.h>
#include <OpenSG/OSGViewport.h>
#include <OpenSG/OSGDrawAction.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_TextureGrabForeground_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_TextureGrabForeground()
{
    scope* osg_TextureGrabForegroundBase_scope = new scope(
    class_< osg::TextureGrabForegroundBase, bases< osg::Foreground > , boost::noncopyable >("TextureGrabForegroundBase", no_init)
//        .def_readonly("TextureFieldMask", &osg::TextureGrabForegroundBase::TextureFieldMask)
//        .def_readonly("AutoResizeFieldMask", &osg::TextureGrabForegroundBase::AutoResizeFieldMask)
//        .def_readonly("BindTargetFieldMask", &osg::TextureGrabForegroundBase::BindTargetFieldMask)
//        .def_readonly("CopyTargetFieldMask", &osg::TextureGrabForegroundBase::CopyTargetFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::TextureGrabForegroundBase::MTInfluenceMask)
        .def("getClassType", &osg::TextureGrabForegroundBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::TextureGrabForegroundBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::TextureGrabForegroundBase::*)() )&osg::TextureGrabForegroundBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::TextureGrabForegroundBase::*)() const)&osg::TextureGrabForegroundBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::TextureGrabForegroundBase::getContainerSize)
        //.def("getTexture", (osg::TextureChunkPtr& (osg::TextureGrabForegroundBase::*)() )&osg::TextureGrabForegroundBase::getTexture, return_value_policy< copy_const_reference >())
        .def("getTexture", (const osg::TextureChunkPtr& (osg::TextureGrabForegroundBase::*)() const)&osg::TextureGrabForegroundBase::getTexture, return_value_policy< copy_const_reference >())
        //.def("getAutoResize", (bool& (osg::TextureGrabForegroundBase::*)() )&osg::TextureGrabForegroundBase::getAutoResize, return_value_policy< copy_const_reference >())
        .def("getAutoResize", (const bool& (osg::TextureGrabForegroundBase::*)() const)&osg::TextureGrabForegroundBase::getAutoResize, return_value_policy< copy_const_reference >())
        //.def("getBindTarget", (GLenum& (osg::TextureGrabForegroundBase::*)() )&osg::TextureGrabForegroundBase::getBindTarget, return_value_policy< copy_const_reference >())
        .def("getBindTarget", (const GLenum& (osg::TextureGrabForegroundBase::*)() const)&osg::TextureGrabForegroundBase::getBindTarget, return_value_policy< copy_const_reference >())
        //.def("getCopyTarget", (GLenum& (osg::TextureGrabForegroundBase::*)() )&osg::TextureGrabForegroundBase::getCopyTarget, return_value_policy< copy_const_reference >())
        .def("getCopyTarget", (const GLenum& (osg::TextureGrabForegroundBase::*)() const)&osg::TextureGrabForegroundBase::getCopyTarget, return_value_policy< copy_const_reference >())
        .def("setTexture", &osg::TextureGrabForegroundBase::setTexture)
        .def("setAutoResize", &osg::TextureGrabForegroundBase::setAutoResize)
        .def("setBindTarget", &osg::TextureGrabForegroundBase::setBindTarget)
        .def("setCopyTarget", &osg::TextureGrabForegroundBase::setCopyTarget)
        .def("getBinSize", &osg::TextureGrabForegroundBase::getBinSize)
        .def("copyToBin", &osg::TextureGrabForegroundBase::copyToBin)
        .def("copyFromBin", &osg::TextureGrabForegroundBase::copyFromBin)
        .def("create", &osg::TextureGrabForegroundBase::create)
        .def("createEmpty", &osg::TextureGrabForegroundBase::createEmpty)
        .def("shallowCopy", &osg::TextureGrabForegroundBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("BindTargetFieldId") = (int)osg::TextureGrabForegroundBase::BindTargetFieldId;
    scope().attr("NextFieldId") = (int)osg::TextureGrabForegroundBase::NextFieldId;
    scope().attr("CopyTargetFieldId") = (int)osg::TextureGrabForegroundBase::CopyTargetFieldId;
    scope().attr("AutoResizeFieldId") = (int)osg::TextureGrabForegroundBase::AutoResizeFieldId;
    scope().attr("TextureFieldId") = (int)osg::TextureGrabForegroundBase::TextureFieldId;

    delete osg_TextureGrabForegroundBase_scope;

    class_< osg::TextureGrabForeground, bases< osg::TextureGrabForegroundBase > , boost::noncopyable, osg::TextureGrabForegroundRefPtr >("TextureGrabForeground", no_init)
        .def("changed", &osg::TextureGrabForeground::changed)
        .def("dump", &osg::TextureGrabForeground::dump, osg_TextureGrabForeground_dump_overloads_0_2())
        .def("draw", &osg::TextureGrabForeground::draw)
    ;


    register_ptr_to_python<osg::TextureGrabForegroundPtr>();
    implicitly_convertible<osg::TextureGrabForegroundRefPtr, osg::TextureGrabForegroundPtr>();
    implicitly_convertible<osg::TextureGrabForegroundPtr, osg::ForegroundPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::TextureGrabForegroundPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::TextureGrabForegroundPtr>);
}

